//
//  KRegistrationPhoneCell.m
//  Keping
//
//  Created by Joanlove on 2017/12/29.
//  Copyright © 2017年 柯平. All rights reserved.
//

#import "KRegistrationPhoneCell.h"

@interface KRegistrationPhoneCell()<UITextFieldDelegate>
@end

@implementation KRegistrationPhoneCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (IBAction)actionForBtn:(id)sender {
    if (self.buttonBlock) {
        self.buttonBlock();
    }
}

- (void)textFieldDidEndEditing:(UITextField *)textField {
    if (self.codeBlock) {
        self.codeBlock(textField.text);
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
